Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier to override the default UriHandler #187

Closed
wants to merge 1 commit into from

Conversation

Wavesonics
Copy link
Contributor

@Wavesonics Wavesonics commented Jan 28, 2024

You can rely on a composition local and override it that way, or you can pass it in as an argument.

Personally, if it is only for a single View, I find composition locals to be a bit cumbersome to override.

From the issue #145 open about this already I think others might as well. This would give people the option to override it either through the local, or just by passing in an argument.

However I can definitely understand the feeling that this is simply redundant to the composition local, so feel free to close this PR if you don't like it.

You can rely on a composition local and override it that way, or you can pass it in as an argument.
@MohamedRejeb
Copy link
Owner

Thanks for your contribution. I don't prefer passing the UriHandler as a parameter. Maybe a listener can be added in the future, but for now users can stick to CompositionLocal. I will add some examples of using CompositionLocal with passing custom UriHandler in the samples and the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants